<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="常规设置"; ?>
<div class="icon32" id="icon-users"><br>
</div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>常规设置<a target="<?php echo $arr['target']?>" href="<?php echo $arr['setting']?>"><?php echo $arr['img']?></a></h2>
<?php $form=$this->beginWidget('CActiveForm', array(
    'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>
<?php if ($model->success) {?>
<div class="updated" id="message">
<p>更新成功。</p>
</div>
<?php }else{  echo $form->errorSummary($model); }?>
<table class="form-table">

	<tr class=" ">
		<th scope="row"><?php echo $form->labelEx($model,'siteName'); ?></th>
		<td><?php echo $form->textField($model,'siteName',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
    <tr class=" ">
        <th scope="row"><?php echo $form->labelEx($model,'siteTitle'); ?></th>
        <td><?php echo $form->textField($model,'siteTitle',array('size'=>45,'maxlength'=>45)); ?></td>
    </tr>
	<tr class=" ">
		<th scope="row"><?php echo $form->labelEx($model,'siteLogoUrl'); ?><br>
		<span class="description">(像素:256*256)</span></th>
		<td><img
			src="<?php echo Yii::app()->request->baseUrl.$model->siteLogoUrl;?>"><br>
			<?php echo $form->FileField($model,'siteLogoFile'); ?></td>
	</tr>
	<tr class=" ">
		<th scope="row"><?php echo $form->labelEx($model,'defaultSpace'); ?><br>
		<span class="description">(单位M，1G=1024M)</span></th>
		<td><?php echo $form->textField($model,'defaultSpace',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class=" ">
		<th scope="row"><?php echo $form->labelEx($model,'company'); ?></th>
		<td><?php echo $form->textField($model,'company',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'enabledReigster'); ?></th>
		<td><?php echo $form->dropDownList($model,"enabledReigster",$model->registerStatusArray,array()) ?></td>
	</tr>
</table>
<div class="row buttons">
	<?php echo CHtml::submitButton('立即保存',array("class"=>"Miniyun_btn01_btn7","onmouseover"=>"this.className='Miniyun_btn01_btn7hover'","onmouseout"=>"this.className='Miniyun_btn01_btn7'")); ?>
</div>
			<?php $this->endWidget(); ?>
